Did you find the shovel?
It is in the secret room west of the library.
Each ghost left something it wants in its own grave.
Read each tombstone until you find the proper match.
Be careful, the shovel will eventually break if you dig in a wrong spot.
The last ghost, a little boy, will lead you to the attic.